@extends('home.public.master')
@section('content')
    <div style="width: 100%;height: 120px; text-align: center;margin-top: 20px;color: #ff5e00;">
        <h1>支付成功</h1>
        <div style="margin-top: 20px;">
            <a name="" id="" class="btn btn-success" href="/"
               role="button">去首页</a>
            <a name="" id="" class="btn btn-info" href="{{route('order.order.orderList')}}"
               role="button">去订单列表</a>
        </div>
    </div>
       <div class="container" style="margin-left: 40px;">
           <div class="row">
               <div id="content" class="col-md-12 col-sm-12">
                   <div class="related titleLine products-list grid module ">
                       <h3 class="modtitle" style="margin-bottom: 20px;">推荐商品</h3>

                       <div class="releate-products yt-content-slider products-list" data-rtl="no" data-loop="yes"
                            data-autoplay="no" data-autoheight="no" data-autowidth="no" data-delay="4" data-speed="0.6"
                            data-margin="30" data-items_column00="5" data-items_column0="5" data-items_column1="3"
                            data-items_column2="3" data-items_column3="2" data-items_column4="1" data-arrows="yes"
                            data-pagination="no" data-lazyload="yes" data-hoverpause="yes">

                           {{--相关商品循环开始--}}
                           @foreach($good as $k=> $value)
                               @if($k<10)
                                   {{--<div class="product-layout col-lg-15 col-md-4 col-sm-6 col-xs-12 text-center">--}}
                                   <div class="item">
                                       <div class="item-inner product-layout transition product-grid">
                                           <div class="product-item-container">
                                               <div class="left-block left-b" style="width: 200px; height: 200px;">

                                                   <div class="product-image-container second_img">
                                                       <a style="width: 190px; overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" href="{{route('showGoods',$value)}}" target="_self" >
                                                           <img src="{{$value['pictures'][0]}}" class="img-1 img-responsive" >
                                                           <img src="{{$value['pictures'][0]}}" class="img-2 img-responsive" >
                                                       </a>
                                                   </div>
                                                   <!--quickview-->
                                                   <div class="so-quickview">
                                                       <a class="iframe-link btn-button quickview quickview_handler visible-lg" href="{{route('quickView',$value)}}" title="Quick view" data-fancybox-type="iframe"><i class="fa fa-eye"></i><span>快速查看</span></a>
                                                   </div>
                                                   <!--end quickview-->


                                               </div>
                                               <div class="right-block">
                                                   <div class="button-group so-quickview cartinfo--left">
                                                       <a href="{{route('showGoods',$value)}}">  <button type="button" class="addToCart" >
                                                               <span>去加入购物车</span>
                                                           </button></a>
                                                       @if(!$value->is_collect($value->id))
                                                       <a href="{{route('collect.clickCollect',$value['id'])}}">
                                                           <button type="button" class="btn-button" title="收藏"
                                                           ><i class="fa fa-heart-o"></i><span>收藏</span>
                                                           </button>
                                                       </a>
                                                       @else
                                                       <a href="{{route('collect.clickCollect',$value['id'])}}">
                                                       <button type="button" class="btn-button" title="取消收藏"
                                                       ><i style="color: red;"
                                                       class="fa fa-heart-o"></i><span>取消收藏</span>
                                                       </button>
                                                       </a>
                                                       @endif

                                                   </div>
                                                   <div class="caption hide-cont">
                                                       <div class="ratings">
                                                           <div class="rating-box">
                                                               @foreach([1,2,3,4,5] as $k=>$v)
                                                                   @if($k<=mt_rand(3,5))
                                                                       <span class=",fa fa-stack">
                                                                <i class="fa fa-star fa-stack-2x"></i>
                                                            </span>
                                                                   @endif
                                                               @endforeach
                                                           </div>
                                                       </div>
                                                       <h4 style="width: 190px; overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"><a href="{{route('showGoods',$value)}}" target="_self">{{$value['name']}}</a></h4>

                                                   </div>
                                                   <p class="price">
                                                       <span class="price-new">¥{{$value['price']}}</span>

                                                   </p>
                                               </div>

                                           </div>
                                       </div>
                                   </div>
                               @endif
                           @endforeach
                           {{--相关产品循环结束--}}
                       </div>

                   </div>

               </div>
           </div>
       </div>


@endsection
